<template>
  <div class="point">
      <div class="top">
          <span @click="back">返回</span>
      <span>我的积分</span>
    </div>
    <el-card class="box-card">
      <div class="text item">
        <p>
          当前积分<span class="balanceExplain" @click="jumpToQuesition"
            >积分说明</span
          >
        </p>
        <p
          class="balance"
          v-if="userLoginMsg"
          v-text="userLoginMsg.point.toFixed(2) + '元'"
        ></p>
        <p class="balance" v-else>0.00分</p>
        <el-button type="info" disabled>积分兑换商品</el-button>
      </div>
    </el-card>
    <el-empty description="暂无明细记录"></el-empty>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
name:'point',
 data() {
    return {
      disabled: true,
    };
  },
  created() {},
  methods: {
    back() {
      this.$router.back();
    },
    // 跳转到余额问题
    jumpToQuesition() {
      this.$router.push({
        name: "balanceQuesition",
      });
    },
  },
    computed: {
    ...mapState(["eleUrl", "userLoginMsg", "citys"]),
  },
}
</script>

<style scoped>
.point{
    font-size: .15rem;
}
.money {
  font-size: 0.15rem;
  background-color: rgb(231, 231, 231);
}
.top {
  height: 0.4rem;
  width: 100%;
  background-color: rgb(80, 143, 238);
}
.top > span {
  color: white;
  line-height: 0.4rem;
  margin-left: 0.2rem;
}
.top > span:nth-child(2) {
  margin-left: 1.2rem;
  font-weight: bold;
}
/* 余额 */
.balanceExplain {
  font-size: 0.1rem;
  float: right;
  color: rgb(117, 180, 223);
}
.balance {
  margin: 0.1rem 0;
  font-size: 0.3rem;
}
.el-button {
  width: 100%;
}
</style>